#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void print(int sum)
{
	int cnt = 0;
	if (sum >10)
	{
		cnt++;
		print(sum / 10);
	}
	sum = sum % 10;
	if (cnt)
	{
		putchar(' ');
	}
	switch (sum)
	{
	case 0:printf("ling");
		break;
	case 1:printf("yi");
		break;
	case 2:printf("er");
		break;
	case 3:printf("san");
		break;
	case 4:printf("si");
		break;
	case 5:printf("wu");
		break;
	case 6:printf("liu");
		break;
	case 7:printf("qi");
		break;
	case 8:printf("ba");
		break;
	case 9:printf("jiu");
		break;
	}
}
int main()
{
	char data[101];
	int sum = 0;
	scanf("%s", data);
	for (int i = 0; data[i] != '\0'; i++)
	{
		sum += data[i] - '0';
	}
	print(sum);
	return 0;
}